//Edit working directory accordingly. Use "CCES_Merged_Replication.dta" data file.
use "CCES_Merged_Replication"

//PAPER FIGURES

//Figure 2: Funding Source
tab fundingtreat fundingsource if year ==2012 [aw = weight], row
*Super PACs: 24.61+22.26 = 46.87
*Campaign Committee: 3.75+2.93 = 6.68
*Party Committee: 19.44+16.82 = 36.26
*Candidate/Personal Funds: 2.17+7.70 = 9.87

tab fundingtreat fundingsource if year ==2014 [aw = weight], row
*Super PACs: 33.93+26.82 = 60.75
*Campaign Committee: 6.36+8.55 = 14.91
*Party Committee: 20.79+16.85 = 37.64
*Candidate/Personal Funds: 3.57+11.55 = 15.12

tab fundingtreat fundingsource if year ==2015 [aw = weight], row
*Super PACs: 32.51+26.65= 59.16
*Campaign Committee: 6.85+9.66 = 16.51
*Party Committee: 15.65+14.88 = 30.53
*Candidate/Personal Funds: 5.39+9.41 = 14.80

tab fundingtreat fundingsource if year ==2016 [aw = weight], row
*Super PACs: 23.14+25.82 = 48.96
*Campaign Committee: 2.78+12.64 = 15.42
*Party Committee: 9.06+12.77 = 21.83
*Candidate/Personal Funds: 3.85+11.39 = 15.24

tab fundingtreat fundingsource if year ==2018 & fundingsource <6 [aw = weight], row
*Super PACs: 30.70+29.49 = 60.19
*Campaign Committee: 4.47+9.69 = 14.16
*Party Committee: 9.23+19.42 = 28.65
*Candidate/Personal Funds: 4.78+6.75= 11.53

tab fundingtreat fundingsource if year ==2020 [aw = weight], row
*Super PACs: 20.07+20.60 = 40.67
*Campaign Committee: 5.90+6.54 = 12.44
*Party Committee: 12.70+14.66 = 27.36
*Candidate/Personal Funds: 5.25+6.00 = 11.25


*****************************


//Figure 3: Expenditure Limits
tab limittreatment limits if year ==2012 [aw = weight], row
*Control/Neutral: 72.68
*Free Sppech/Freedom: 68.38
*No Voice Dominates/Set of: 73.02
*No Voice Dominates + Free Speech/Both: 65.81

tab limittreatment limits if year ==2014 [aw = weight], row
*Control/Neutral: 66.65
*Free Sppech/Freedom: 65.34
*No Voice Dominates/Set of: 80.60
*No Voice Dominates + Free Speech/Both: 75.23

tab limittreatment limits if year ==2015 [aw = weight], row
*Control/Neutral: 65.03
*Free Sppech/Freedom: 62.31
*No Voice Dominates/Set of: 64.69
*No Voice Dominates + Free Speech/Both: 66.05

tab limittreatment limits if year ==2016 [aw = weight], row
*Control/Neutral: 70.96
*Free Sppech/Freedom: 64.68
*No Voice Dominates/Set of: 70.61
*No Voice Dominates + Free Speech/Both: 67.23

tab limittreatment limits if year ==2018 [aw = weight], row
*Control/Neutral: 78.87
*Free Sppech/Freedom: 65.78
*No Voice Dominates/Set of: 78.56
*No Voice Dominates + Free Speech/Both: 74.10

tab limittreatment limits if year ==2020 [aw = weight], row
*Control/Neutral: 71.20
*Free Sppech/Freedom: 60.14
*No Voice Dominates/Set of: 74.05
*No Voice Dominates + Free Speech/Both: 66.57


*****************************


//Figure 4A: Corruption
tab pactreatment corruption if year ==2014 [aw = weight], row
*Control(1): 30.10+31.80 = 61.90
*Former Staff(2): 34.18+25.11 = 59.29
*Fundraisers(3): 35.80+24.39 = 60.19
*Information(4): 31.93+35.94 = 67.87

tab pactreatment corruption if year ==2015 [aw = weight], row
*Control(1): 34.90+24.37 = 59.27
*Former Staff(2): 38.76+26.17 = 64.92
*Fundraisers(3): 30.75+31.74 = 62.49
*Information(4): 27.01+30.25 = 57.26

tab pactreatment corruption if year ==2016 [aw = weight], row
*Control(1): 24.16+32.07 = 56.23
*Former Staff(2): 26.91+34.11 = 61.02
*Fundraisers(3): 23.01+38.27 = 61.28
*Information(4): 24.42+35.01 = 59.43

tab pactreatment corruption if year ==2018 & corruption <6 [aw = weight], row
*Control(1): 42.49+26.97 = 69.46
*Former Staff(2): 32.96+33.49 = 66.45
*Fundraisers(3): 38.14+29.43 = 67.57
*Information(4): 34.24+32.72 = 66.96

tab pactreatment corruption if year ==2020 [aw = weight], row
*Control(1): 34.25+30.19 = 64.44
*Former Staff(2): 36.47+26.05 = 62.52
*Fundraisers(3): 34.46+25.67 = 60.13
*Information(4): 37.45+24.63 = 62.08

/////////////////////////////

//Figure 4B: Favored Candidate
tab pactreatment favored if year ==2014 [aw = weight], row
*Control(1): 26.65+31.08 = 57.33
*Former Staff(2): 23.74+33.23 = 56.97
*Fundraisers(3): 32.00+32.35 = 64.35
*Information(4): 29.57+33.71 = 63.28

tab pactreatment favored if year ==2015 [aw = weight], row
*Control(1): 30.13+33.09 = 63.22
*Former Staff(2): 35.17+31.66 = 66.83
*Fundraisers(3): 31.70+30.53 = 62.23
*Information(4): 26.50+30.39 = 56.89

tab pactreatment favored if year ==2016 [aw = weight], row
*Control(1): 18.99+37.70 = 56.69
*Former Staff(2): 24.16+43.62 = 67.78
*Fundraisers(3): 28.06+40.97 = 69.03
*Information(4): 22.00+39.58 = 61.58

tab pactreatment favored if year ==2018 & corruption <6 [aw = weight], row
*Control(1): 28.94+32.42 = 61.36
*Former Staff(2): 22.91+35.88 = 58.79
*Fundraisers(3): 21.07+32.35 = 53.42
*Information(4): 29.14+33.50 = 62.64

tab pactreatment favored if year ==2020 [aw = weight], row
*Control(1): 23.23+30.11 = 53.34
*Former Staff(2): 30.86+32.32 = 63.18
*Fundraisers(3): 26.87+35.58 = 62.45
*Information(4): 29.81+33.00 = 62.81

/////////////////////////////

//Figure 4C: Trust
tab pactreatment trust if year ==2014 [aw = weight], row
*Control(1): 33.45+29.30 = 62.75
*Former Staff(2): 35.75+26.60 = 62.35
*Fundraisers(3): 38.57+25.58 = 64.15
*Information(4): 33.64+29.97 = 63.61

tab pactreatment trust if year ==2015 [aw = weight], row
*Control(1): 36.27+22.98 = 59.25
*Former Staff(2): 38.46+21.08 = 59.54
*Fundraisers(3): 33.89+24.50 = 58.39
*Information(4): 30.22+23.91 = 54.13

tab pactreatment trust if year ==2016 [aw = weight], row
*Control(1): 22.87+36.65 = 59.52
*Former Staff(2): 28.81+33.35 = 62.16
*Fundraisers(3): 26.27+32.09 = 58.36
*Information(4): 25.47+31.14 = 56.61

tab pactreatment trust if year ==2018 & corruption <6 [aw = weight], row
*Control(1): 42.36+29.36 = 71.72
*Former Staff(2): 38.69+35.47 = 74.16
*Fundraisers(3): 34.48+26.00 = 60.48
*Information(4): 35.69+35.13 = 70.82

tab pactreatment trust if year ==2020 [aw = weight], row
*Control(1): 31.20+30.21 = 61.41
*Former Staff(2): 35.32+27.96 = 63.28
*Fundraisers(3): 29.30+33.48 = 62.78
*Information(4): 31.77+29.83 = 61.60


*****************************


//Figure 5: Donation Disclosure
tab disclosuretreatment disclosure if year ==2018 [aw = weight], row
*Control: 74.26
*Harassment: 68.68
*Foreign Interference: 83.12
*Foreign Interference + Harassment: 80.26

tab disclosuretreatment disclosure if year ==2020 [aw = weight], row
*Control: 76.02
*Harassment: 68.56
*Foreign Interference: 75.43
*Foreign Interference + Harassment: 75.03


*****************************


//APPENDIX FIGURES

//Figure A1: Spending Source 2020
tab fundingtreat fundingsource if year ==2020 [aw = weight], row

//Figure A2: Limits 2020
tab limittreatment limits if year ==2020 [aw = weight], row

//Figure A3: Corruption 2020
tab pactreatment corruption if year ==2020 [aw = weight], row

//Figure A4: Favored Candidate 2020
tab pactreatment favored if year ==2020 [aw = weight], row

//Figure A5: Trust 2020
tab pactreatment trust if year ==2020 [aw = weight], row

//Figure A6: Donation Disclosure 2020
tab disclosuretreatment disclosure if year ==2020 [aw = weight], row


*****************************


//APPENDIX TABLES 

//Table A1: Spending Source with weights
*Generate funding source variable that does not include participants who skipped question
generate fundingsource5 = fundingsource if fundingsource <6
tab fundingsource5 fundingsource

oprobit fundingsource5 b2.fundingtreat if year == 2012 [aw=weight]
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat

oprobit fundingsource5 b2.fundingtreat if year == 2014 [aw=weight]
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat

oprobit fundingsource5 b2.fundingtreat if year == 2015 [aw=weight]
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat

oprobit fundingsource5 b2.fundingtreat if year == 2016 [aw=weight]
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat

oprobit fundingsource5 b2.fundingtreat if year == 2018 [aw=weight]
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat

oprobit fundingsource5 b2.fundingtreat if year == 2020 [aw=weight]
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat


*****************************


//Table A2: Spending Source without weights
oprobit fundingsource5 b2.fundingtreat if year == 2012
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat

oprobit fundingsource5 b2.fundingtreat if year == 2014
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat

oprobit fundingsource5 b2.fundingtreat if year == 2015
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat

oprobit fundingsource5 b2.fundingtreat if year == 2016
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat

oprobit fundingsource5 b2.fundingtreat if year == 2018
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat

oprobit fundingsource5 b2.fundingtreat if year == 2020
test 1.fundingtreat = 2.fundingtreat
test 1.fundingtreat = 3.fundingtreat
test 1.fundingtreat = 4.fundingtreat
test 2.fundingtreat = 3.fundingtreat
test 2.fundingtreat = 4.fundingtreat
test 3.fundingtreat = 4.fundingtreat
testparm b2.fundingtreat


*****************************


//Table A3: Limits with weights
*Generate binary limit variable (exclude don't know)
generate limit2 = 0 if limits ==2
replace limit2 = 1 if limits ==1
tab limit2 limits

probit limit2 b1.limittreatment if year == 2012 [pw=weight]
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment

probit limit2 b1.limittreatment if year == 2014 [pw=weight]
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment

probit limit2 b1.limittreatment if year == 2015 [pw=weight]
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment

probit limit2 b1.limittreatment if year == 2016 [pw=weight]
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment

probit limit2 b1.limittreatment if year == 2018 [pw=weight]
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment

probit limit2 b1.limittreatment if year == 2020 [pw=weight]
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment

*****************************


//Table A4: Limits without weights
probit limit2 b1.limittreatment if year == 2012 
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment

probit limit2 b1.limittreatment if year == 2014
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment

probit limit2 b1.limittreatment if year == 2015 
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment

probit limit2 b1.limittreatment if year == 2016 
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment

probit limit2 b1.limittreatment if year == 2018
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment

probit limit2 b1.limittreatment if year == 2020 
test 1.limittreatment = 2.limittreatment
test 1.limittreatment = 3.limittreatment
test 1.limittreatment = 4.limittreatment
test 2.limittreatment = 3.limittreatment
test 2.limittreatment = 4.limittreatment
test 3.limittreatment = 4.limittreatment
testparm b1.limittreatment


*****************************


//Table A5: Corruption with weights
*Generate reverse-coded corruption variable that does not include participants who skipped question
generate corruption5 = 1 if corruption == 5
replace corruption5 = 2 if corruption == 4
replace corruption5 = 3 if corruption == 3
replace corruption5 = 4 if corruption == 2
replace corruption5 = 5 if corruption == 1
tab corruption5 corruption

oprobit corruption5 b1.pactreatment if year == 2014 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit corruption5 b1.pactreatment if year == 2015 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit corruption5 b1.pactreatment if year == 2016 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit corruption5 b1.pactreatment if year == 2018 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit corruption5 b1.pactreatment if year == 2020 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment


*****************************


//Table A6: Corruption without weights
oprobit corruption5 b1.pactreatment if year == 2014
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit corruption5 b1.pactreatment if year == 2015
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit corruption5 b1.pactreatment if year == 2016
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit corruption5 b1.pactreatment if year == 2018
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit corruption5 b1.pactreatment if year == 2020
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment


*****************************


//Table A7: Favored candidate with weights
*Generate reverse-coded favored candidate variable that does not include participants who skipped question
generate favored5 = 1 if favored == 5
replace favored5 = 2 if favored == 4
replace favored5 = 3 if favored == 3
replace favored5 = 4 if favored == 2
replace favored5 = 5 if favored == 1
tab favored5 favored

oprobit favored5 b1.pactreatment if year == 2014 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit favored5 b1.pactreatment if year == 2015 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit favored5 b1.pactreatment if year == 2016 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit favored5 b1.pactreatment if year == 2018 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit favored5 b1.pactreatment if year == 2020 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment


*****************************


//Table A8: Favored candidate without weights
oprobit favored5 b1.pactreatment if year == 2014
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit favored5 b1.pactreatment if year == 2015
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit favored5 b1.pactreatment if year == 2016
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit favored5 b1.pactreatment if year == 2018
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit favored5 b1.pactreatment if year == 2020
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment


*****************************


//Table A9: Trust with weights
*Generate reverse-coded trust variable that does not include participants who skipped question
generate trust5 = 1 if trust == 5
replace trust5 = 2 if trust == 4
replace trust5 = 3 if trust == 3
replace trust5 = 4 if trust == 2
replace trust5 = 5 if trust == 1
tab trust5 trust

oprobit trust5 b1.pactreatment if year == 2014 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit trust5 b1.pactreatment if year == 2015 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit trust5 b1.pactreatment if year == 2016 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit trust5 b1.pactreatment if year == 2018 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit trust5 b1.pactreatment if year == 2020 [aw = weight]
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment


*****************************


//Table A10: Trust without weights
oprobit trust5 b1.pactreatment if year == 2014
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit trust5 b1.pactreatment if year == 2015
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit trust5 b1.pactreatment if year == 2016
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit trust5 b1.pactreatment if year == 2018
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment

oprobit trust5 b1.pactreatment if year == 2020
test 1.pactreatment = 2.pactreatment
test 1.pactreatment = 3.pactreatment
test 1.pactreatment = 4.pactreatment
test 2.pactreatment = 3.pactreatment
test 2.pactreatment = 4.pactreatment
test 3.pactreatment = 4.pactreatment
testparm b1.pactreatment


*****************************


//Table A11: Donation disclosure with weights
*Generate binary donation disclosure variable (exclude don't know)
generate disclosure2 = 0 if disclosure ==2
replace disclosure2 = 1 if disclosure ==1
tab disclosure2 disclosure

probit disclosure2 b1.disclosuretreatment if year == 2018 [pw=weight]
test 1.disclosuretreatment = 2.disclosuretreatment
test 1.disclosuretreatment = 3.disclosuretreatment
test 1.disclosuretreatment = 4.disclosuretreatment
test 2.disclosuretreatment = 3.disclosuretreatment
test 2.disclosuretreatment = 4.disclosuretreatment
test 3.disclosuretreatment = 4.disclosuretreatment
testparm b1.disclosuretreatment

probit disclosure2 b1.disclosuretreatment if year == 2020 [pw=weight]
test 1.disclosuretreatment = 2.disclosuretreatment
test 1.disclosuretreatment = 3.disclosuretreatment
test 1.disclosuretreatment = 4.disclosuretreatment
test 2.disclosuretreatment = 3.disclosuretreatment
test 2.disclosuretreatment = 4.disclosuretreatment
test 3.disclosuretreatment = 4.disclosuretreatment
testparm b1.disclosuretreatment


*****************************


//Table A12: Donation disclosure weights
probit disclosure2 b1.disclosuretreatment if year == 2018 
test 1.disclosuretreatment = 2.disclosuretreatment
test 1.disclosuretreatment = 3.disclosuretreatment
test 1.disclosuretreatment = 4.disclosuretreatment
test 2.disclosuretreatment = 3.disclosuretreatment
test 2.disclosuretreatment = 4.disclosuretreatment
test 3.disclosuretreatment = 4.disclosuretreatment
testparm b1.disclosuretreatment

probit disclosure2 b1.disclosuretreatment if year == 2020 
test 1.disclosuretreatment = 2.disclosuretreatment
test 1.disclosuretreatment = 3.disclosuretreatment
test 1.disclosuretreatment = 4.disclosuretreatment
test 2.disclosuretreatment = 3.disclosuretreatment
test 2.disclosuretreatment = 4.disclosuretreatment
test 3.disclosuretreatment = 4.disclosuretreatment
testparm b1.disclosuretreatment


*****************************








